package com.henry.reader;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class Detail extends Activity implements OnClickListener {
	
	private Button title_icon;
	
	private Button comment;

	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.detail);
		title_icon = (Button) findViewById(R.id.title_icon);
		comment = (Button) findViewById(R.id.comment);
		
		title_icon.setOnClickListener(this);
		comment.setOnClickListener(this);
	}
	
	public void onClick(View v) {
		switch (v.getId()) {
			case R.id.title_icon:
				finish();
				break;
			case R.id.comment:
				Intent intentCommentlist = new Intent(this, CommentListActivity.class);
				startActivity(intentCommentlist);
				break;
			default:
				break;
		}
	}
}
